/* import React, { PureComponent } from 'react';


class Item extends PureComponent {
    render() {
        console.log("child-render")
        return (
            <div>
                item
                <p>{this.props.person.age}</p>
            </div>
        );
    }
    componentDidMount(){
        console.log("child-mount")
    }
    componentDidUpdate(){
        console.log("child-update")
    }
}

export default Item; */

import React from 'react';

const Item = (props) => {

    return (
        <div>
            {props.person.age}
        </div>
    );
}

export default Item;



